package com.hdax.dmw.order.mapstruct;

import com.hdax.dmw.entity.user.LinkUser;
import com.hdax.dmw.order.dtos.LinkUserDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import java.util.List;

@Mapper(componentModel = "spring")
public abstract class LinkUserDtoMapper {

    @Mappings({
            @Mapping(source = "id",target = "linkId")
    })
    public abstract LinkUserDto toTarget(LinkUser source);
    public abstract List<LinkUserDto> toTargetList(List<LinkUser> sources);
}
